<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Symbol</title>
	</head>
	<body>
		<script>
			const symbol1 = Symbol()
			const symbol2 = Symbol(42)
			const symbol3 = Symbol('foo')
			console.log(typeof symbol1)
			// expected output: "symbol"
			console.log(symbol2 === 42)
			// expected output: false
			console.log(symbol3.toString())
			// expected output: "Symbol(foo)"
			console.log(Symbol('foo') === Symbol('foo'))
			// expected output: false
		</script>
	</body>
</html>
